'use strict'


import request from '@/utils/request'

export function list(parameter) {
  return request({
    url: '/ExExam/GetPageData',
    method: 'get',
    params: parameter
  })
}
// 考试详情 /ExExam/GetDetail
export function getDetail(parameter) {
  return request({
    url: '/ExExam/GetDetail',
    method: 'get',
    params: parameter
  })
}
// 开始考试 /ExExam/GetExamPaperQuestionDetail
export function getExamPaperQuestionDetail(parameter) {
  return request({
    url: '/ExExam/GetExamPaperQuestionDetail',
    method: 'get',
    params: parameter
  })
}
// 提交考试   POST /api/ExExam/FinishExam HTTP/1.1
export function finishExam(data) {
  return request({
    url: '/ExExam/FinishExam',
    method: 'post',
   data
  })
}
// 考试结果 GetExamResult

export function getExamResult(parameter) {
  return request({
    url: '/ExExam/GetExamResult',
    method: 'get',
    params: parameter
  })
}
// 查看试卷 /ExExam/GetExamUserPaperResult

export function getExamUserPaperResult(parameter) {
  return request({
    url: '/ExExam/GetExamUserPaperResult',
    method: 'get',
    params: parameter
  })
}

// 提交考试签名 POST /api/ExExamUserPaper/Sign HTTP/1.1
export function ExExamUserPaper(data) {
  return request({
    url: '/ExExamUserPaper/Sign',
    method: 'post',
   data
  })
}
// 签名信息 GuidelineEntrustedReg/GetSignInfo
export function GuidelineEntrustedReg(parameter) {
  return request({
    url: '/GuidelineEntrustedReg/GetSignInfo',
    method: 'get',
    params: parameter
  })
}